package com.prig.base.classManger.single.repository;

import com.prig.base.classManger.single.entity.Single;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @Author lww
 * @Description //TODO
 * @Date 2020/11/18 16:32
 **/
public interface SingleRepository extends JpaRepository<Single,Long> {
    @Transactional
    @Query(nativeQuery = true,value = "delete from single where id in :idsLong")
    @Modifying
    void deleteByIds(List<Long> idsLong);


}
